/**
 * 
 */
package com.wsj.web.vo.homeSite;

import java.util.Date;

/**
 * @author fengbin  createTime:2009-7-4
 *
 */
public class UserBase implements java.io.Serializable{
	
	

	/**
	 * 
	 */
	private static final long serialVersionUID = 8204994659326506570L;

	//用户id
	private long userId;
	
	//用户名
	private String userName;
	
	//电子邮件
	private String email;
	
	//密码
	private String password;
	
	//用户类型
	private short  userType;
	
	//是否删除
	private short del;
	
	//创建时间
	private Date gmtCreate;
	
	//修改时间
	private Date gmtModify;
	
	
	public UserBase() {
		super();
		// TODO Auto-generated constructor stub
	}

	public UserBase(long userId, String userName, String email, String password, short userType, short del, Date gmtCreate, Date gmtModify) {
		super();
		this.userId = userId;
		this.userName = userName;
		this.email = email;
		this.password = password;
		this.userType = userType;
		this.del = del;
		this.gmtCreate = gmtCreate;
		this.gmtModify = gmtModify;
	}

	public short getDel() {
		return del;
	}

	public void setDel(short del) {
		this.del = del;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModify() {
		return gmtModify;
	}

	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public short getUserType() {
		return userType;
	}

	public void setUserType(short userType) {
		this.userType = userType;
	}
	
	
	/*******
	 * 是否是超级管理员
	 * 0表示超级管理员
	 */
	public boolean isAdmin(){
		return userType==0;
	}

}
